﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage/MasterPage.master" AutoEventWireup="true" CodeFile="EditUser.aspx.cs" Inherits="Manage_EditUser" %>
<%@ Register Src="~/Manage/CmsMessageBox.ascx" TagName="MessageBox" TagPrefix="cms" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script type="text/javascript">
        $(document).ready(function () {
            $('#<%=Save.ClientID %>').click(function () {
                var ds = [{ 'Controller': '#<%=UserID.ClientID %>',
                    'Type': 'R',
                    'ErrorMessage': '请输入用户名。',
                    'Clear': true,
                    'Focus': true
                }, { 'Controller': '#<%=UserName.ClientID %>',
                    'Type': 'R',
                    'ErrorMessage': '请输入用户姓名。',
                    'Clear': true,
                    'Focus': true
                }, { 'Controller': '#<%=District.ClientID %>',
                    'Type': 'R',
                    'ErrorMessage': '请选择所在县区。',
                    'Clear': false,
                    'Focus': true
                }, { 'Controller': '#<%=Belong.ClientID %>',
                    'Type': 'R',
                    'ErrorMessage': '请选择隶属部门。',
                    'Clear': false,
                    'Focus': true
                } ];

                return Cms_ValidateForm(ds);
            });
        });
    </script></asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="body" Runat="Server">
    <cms:MessageBox ID="MessageBox" runat="server" />
    <table class="Info" cellspacing="1">
        <tr>
            <td align="right" style="width: 100px">用户名：</td>
            <td align="center"><asp:TextBox ID="UserID" runat="server" Width="350px" CssClass="text"></asp:TextBox></td>
        </tr>
        <tr>
            <td align="right">用户姓名：</td>
            <td align="center"><asp:TextBox ID="UserName" runat="server" Width="350px" CssClass="text"></asp:TextBox></td>
        </tr>
        <tr>
            <td align="right">所在县区：</td>
            <td>
                <asp:DropDownList ID="District" runat="server" AutoPostBack="True" 
                    onselectedindexchanged="District_SelectedIndexChanged" Width="200px"></asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td align="right">隶属部门：</td>
            <td>
                <asp:DropDownList ID="Belong" runat="server" Width="200px"></asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td align="right">权限：</td>
            <td align="center">
                <table>
                    <tr>
                        <td style="width:100px" align="left"><asp:CheckBox ID="ArticleManager" runat="server" Text="文章管理员" /></td>
                        <td style="width:100px" align="left"><asp:CheckBox ID="ArticleVerifier" runat="server" Text="文章审核员" /></td>
                        <td style="width:100px" align="left">&nbsp;</td>
                    </tr>
                    <tr>
                        <td align="left"><asp:CheckBox ID="TeacherManager" runat="server" Text="教师信息管理员" /></td>
                        <td align="left"><asp:CheckBox ID="TeacherVerifier" runat="server" Text="教师信息审核员" /></td>
                        <td align="left"><asp:CheckBox ID="TrainManager" runat="server" Text="培训管理员" /></td>
                    </tr>
                    <tr>
                        <td align="left"><asp:CheckBox ID="SystemManager" runat="server" Text="系统管理员" /></td>
                        <td align="left">&nbsp;</td>
                        <td align="left">&nbsp;</td>
                    </tr>
                    <tr>
                        <td align="left"><asp:CheckBox ID="Statistician" runat="server" Text="统计员" /></td>
                        <td align="left">&nbsp;</td>
                        <td align="left">&nbsp;</td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <asp:Button ID="Save" runat="server" Text="保存" CssClass="Button" 
                    onclick="Save_Click" /></td>
        </tr>
    </table>
</asp:Content>

